/**
 * 
 */
package lab6;

import junit.framework.TestCase;

/**
 * @author Nican
 * 
 */
public class VendTest extends TestCase {
	Vending v = new Vending(5, 5);
	
	/*
	 * Test cases creates all the initializers for each test
	 * @see junit.framework.TestCase#setUp()
	 */
	public void setUp() {
		v.addMoney(1.5);
	}

	public void test2() {
		v.select("Gum");
		assertTrue(v.getBalance() == 1);
	}

	public void test3() {
		v.select("Candy");
		assertTrue(v.getBalance() == .25);
	}
}
